BIN
HEX

Syntax: BIN (binary$)
    or: BIN (binary)   where binary=0..111111
   and: HEX (hex$)
Location: Toolkit II, THOR XVI

The function BIN returns the decimal value of a binary number (given as a string). For small numbers, a floating point number can be used but will cause problems if this is not a valid binary number.

HEX converts a hexadecimal number to decimal.

Examples:
PRINT BIN ( '1001' )             will print the value 9
PRINT HEX ('3F')

NOTE:
Any digit for BIN other than 0 or 1 will produce odd results.

CROSS-REFERENCE:
BIN$ converts decimal numbers into their binary equivalent.
See also BIT%
